package oop2;

public class CalcTest {

	public static void main(String[] args) {
		Calc c = new Calc();
		int java = 49;
		int music = 100;
		System.out.printf("这个同学java成绩%d,音乐成绩：%d \n", java, music);
		int avg = c.avg(java, music);
		System.out.printf("这个同学java成绩%d,音乐成绩：%d,平均分是%d \n", java, music, avg);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		Student stu = new Student();
		stu.name = "逍遥子";
		stu.java = 40;
		stu.music = 80;
		stu.show();
		int avg2 = c.avg2(stu);
		System.out.println("算过后。。。。。。。。。。。。。");
		stu.show();
		System.out.println("平均是：" + avg2);
	}

}
